<? if (isset($script_vars)):?>
<script type="text/javascript">
    <?php foreach ($script_vars as $k=>$v):?>
	var <?php echo $k?>= '<?php echo $v?>' ;
	<?php endforeach;?>
</script>
<? endif;?>
<?php foreach ($scripts as $_script):?>
<script type="text/javascript" src="<?php echo $_script?>"></script>
<?php endforeach;?>
</body>
</html>